﻿<controls:ChildWindow xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="predic.Web2.Views.EditStudy"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="750" Height="500" 
           Title="Editeaza Studiu/Predica">
    <toolkit:BusyIndicator x:Name="BusyIndicator">
        <Grid x:Name="LayoutRoot" Margin="2">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="0.5*" />

                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="0.5*" />
                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="*"  />
                </Grid.RowDefinitions>

                <!--Title-->
                <TextBlock Margin="5" Grid.Row="0" Grid.Column="0" Text="Title" VerticalAlignment="Center"  HorizontalAlignment="Left"/>
                <TextBox Margin="5" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" 
                         Text="{Binding Path=SelectedViewStudy.Title, Mode=TwoWay}"/>

                <!--Subtitle-->
                <TextBlock Margin="5" Grid.Row="1" Grid.Column="0" Text="Subtitle" VerticalAlignment="Center"  HorizontalAlignment="Left" />
                <TextBox Margin="5" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" 
                         Text="{Binding Path=SelectedViewStudy.Subtitle, Mode=TwoWay}"/>

                <!--Text-->
                <TextBlock Margin="5" Grid.Row="2" Grid.Column="0" Text="Text" VerticalAlignment="Center"  HorizontalAlignment="Left" />
                <TextBox Margin="5" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" 
                         Text="{Binding Path=SelectedViewStudy.Text, Mode=TwoWay}"/>

                <!--Tematica-->
                <TextBlock Margin="5" Grid.Row="3" Grid.Column="0" Text="Tematica" VerticalAlignment="Center"  HorizontalAlignment="Left" />
                <TextBox Margin="5" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"
                         Text="{Binding Path=SelectedViewStudy.Tematica, Mode=TwoWay}"/>

                <!--Subiect-->
                <TextBlock Margin="5" Grid.Row="4" Grid.Column="0" Text="Subiect" VerticalAlignment="Center"  HorizontalAlignment="Left" />
                <TextBox Margin="5" Grid.Row="4" Grid.Column="1" VerticalAlignment="Center"
                         Text="{Binding Path=SelectedViewStudy.Subiect, Mode=TwoWay}"/>

                <StackPanel Margin="5"  Grid.Row="5" Grid.ColumnSpan="2" Orientation="Horizontal" VerticalAlignment="Center">
                    <CheckBox Content="Video" />
                    <CheckBox Margin="14,0,0,0" Content="Incarcat si verificat" />
                </StackPanel>

                <TextBlock Margin="5" Grid.Row="6" Grid.Column="0" Text="Observatii" VerticalAlignment="Top"  HorizontalAlignment="Left" />
                <TextBox Margin="5" Grid.Row="6" Grid.Column="1" VerticalAlignment="Top" 
                         AcceptsReturn="True" Height="175" 
                         ScrollViewer.HorizontalScrollBarVisibility="Auto"
                         ScrollViewer.VerticalScrollBarVisibility="Auto" />



                <!--Other side-->
                <ScrollViewer Grid.RowSpan="7" Grid.Column="2" Grid.ColumnSpan="2" BorderThickness="0"
                              VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
                    <StackPanel>
                        <toolkit:Expander Header="Arhiva" IsExpanded="True" Margin="5">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>

                                <TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Text="Comp. video" />
                                <TextBox Grid.Row="0" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. site video" />
                                <TextBox Grid.Row="1" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. audio" />
                                <TextBox Grid.Row="2" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. audio generic" />
                                <TextBox Grid.Row="3" Grid.Column="1" Margin="5" />

                            </Grid>
                        </toolkit:Expander>

                        <toolkit:Expander Header="Site" IsExpanded="True" Margin="5">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>

                                <TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Text="Comp. video" />
                                <TextBox Grid.Row="0" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. site video" />
                                <TextBox Grid.Row="1" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. audio" />
                                <TextBox Grid.Row="2" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. audio generic" />
                                <TextBox Grid.Row="3" Grid.Column="1" Margin="5" />

                            </Grid>
                        </toolkit:Expander>

                        <toolkit:Expander Header="Emisiune" IsExpanded="True" Margin="5">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>

                                <TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Text="Comp. video" />
                                <TextBox Grid.Row="0" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. site video" />
                                <TextBox Grid.Row="1" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. audio" />
                                <TextBox Grid.Row="2" Grid.Column="1" Margin="5" />

                                <TextBlock Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"  Text="Comp. audio generic" />
                                <TextBox Grid.Row="3" Grid.Column="1" Margin="5" />

                            </Grid>
                        </toolkit:Expander>
                    </StackPanel>

                </ScrollViewer>
            </Grid>

            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        </Grid>
    </toolkit:BusyIndicator>
</controls:ChildWindow>